var express = require('express');
var router = express.Router();
const detailController = require("../controllers/detail_controller")
router.get("/detail/:doubanId", (req, res) => {
    var {
        doubanId
    } = req.params
    var {
        collectionName}=req.query
    console.log(doubanId,collectionName);
    detailController.detailitem(Number(doubanId),collectionName, ["查询失败", "查询成功"], (result) => {
        res.json(result)
    })
})
module.exports =router;